package com.card.game.ddz;

public class DdzAllResult {
	private String userId;//玩家id
	private int maxScore;//最大分数
	private int allBombNum;//总炸弹数
	private int score;//输赢积分
	private int winNum;//赢局数
	private int lostNum;//输局数
	
	public DdzAllResult(DdzPlayer player,int maxNum) {
		this.userId = player.getUserId();
		this.maxScore = player.ddzInfo.maxScore;
		this.allBombNum = player.ddzInfo.allBombNum;
		this.score = player.getScore();
		this.winNum = player.ddzInfo.winNum;
		this.lostNum = Math.max(maxNum - winNum, 0);
	}
}
